import React from 'react';
import { Button, WhiteSpace, List } from 'antd-mobile';
class Home extends React.Component{
    
    render(){
        const { history } = this.props;
        return (
            <div>
                操作
                <WhiteSpace />
                <WhiteSpace />
                <List>
                    <Button type="primary" onClick={()=>{
                        history.push('/login');
                    }} >登录</Button>
                    <WhiteSpace />
                    <Button type="primary" onClick={()=>{
                        history.push('/register');
                    }}>注册</Button>
                </List>
            </div>
        )
    }
}

export default Home;